#include "Matrix.h"
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
    int n;
    cin>>n;
    Matrix<int> A(n,n),B(n,n),C(n,n);
    for(int i=0;i<n;i++)
        for(int j=0;j<n;j++)
            cin>>A(i,j);
    for(int i=0;i<n;i++)
        for(int j=0;j<n;j++)
            cin>>B(i,j);
    C=A*B;
    cout<<C(0,0)<<C(0,1);
  if (A.is_square())
    cout << "The matrix is a square matrix" <<endl;
  else
    cout << "The matrix is not a square matrix" <<endl;
  return 0;
};
